#! /bin/sh
SPECMAN_PATH="/home/danilo/testbus/testbus_lib:$SPECMAN_PATH"
export SPECMAN_PATH
DIR_NAME=`sn_which.sh vv_ahblite`
gui="-gui -input $DIR_NAME/examples/sim_command.tcl"

# The vr_ad package (used for the memory), requires IPCM
vr_ad_path=`sn_which.sh vr_ad`
if [ $? -ne 0  ]; then
    echo "Error: Register package not found"
    echo "    This package requires the register package (vr_ad)"
    echo "    Make sure IPCM is installed"
    exit 1
fi

while [ "$#" -gt 0 ]; do
   case $1 in
      -h|help)
           echo "usage: demo [-batch] [-h|help]"
           exit 0
       ;;
      -batch)
         gui=""
      ;;
   esac
   shift
done

irun -nosncomp $gui $DIR_NAME/e/vv_ahblite_top.e $DIR_NAME/examples/vr_ad/reg_test.e $DIR_NAME/examples/vv_ahblite_skeleton.v
